# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.views.generic import list_detail
import views

urlpatterns = patterns ('',
    url(r'^category/$', views.card_list, name='card_list'),
    url(r'^category/(?P<id>\d?)/$', views.card_list, name='card_list'),
    url(r'^card/(?P<id>\d+)/$', views.card_detail, name='card_detail'),
    url(r'^card/(?P<id>\d+)/buy/$', views.card_buy, name='card_buy'),
    url(r'^order/(?P<id>\d+)/alipay/$', views.alipay_pay, name='alipay_pay'),
    url(r'^alipay/notify$', views.alipay_pay, name='alipay_notify'),
)
